package com.niiwoo.activity.stage.service.activity;

import com.niiwoo.activity.stage.dto.response.activity.RecivePrizeRespDTO;
import com.niiwoo.activity.stage.dto.response.activity.RegisterGiftRecordRespDTO;

import java.util.Date;
import java.util.List;

/**
 * Created by dengyunhui on 2018/01/29.
 * <p>
 * 新手有礼
 */
public interface RegisterActivityDubboService {

    /**
     * 发送新手有礼奖品
     *
     * @param userId
     * @param source
     * @param registerTime
     */
    void sendRegisterGift(String userId, String source, Date registerTime);

    /**
     * 获取新手有礼未发奖记录
     *
     * @return
     */
    List<RegisterGiftRecordRespDTO> getNotSendRecord();

    /**
     * 领取奖品
     * @param userId
     * @return
     */
    default RecivePrizeRespDTO recivePrize(String userId){
        throw new UnsupportedOperationException("unimplemented");
    };
    /**
     * 查询用户Id判断是否领取奖品
     * @param userId
     * @return
     */
    default RecivePrizeRespDTO queryPrize(String userId){
        throw new UnsupportedOperationException("unimplemented");
    };

}
